#!/usr/bin/python3
# -*- coding:utf-8 -*-
import time

def draw_circle(total_time=2,rate=2):
    list_circle = ['\\','|','/','－']
    rate_time = 1.0/rate
    count = int(total_time/rate_time)
    while count > 0:
        for i in list_circle:
            print("\r{}".format(i),end="")
            time.sleep(rate_time)
        count -= 1

if __name__ == '__main__':
    draw_circle(6,2)